Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: FindWindow usage or ways to jump to an open IE window
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Functionality
Platform: Windows
Release: 8.5.3
Reproducible: Always

I would like to use FindWindow in a Lotusscript to jump to an open Internet Explorer window and enter some text in that window. It has been suggested that I use FindWindow but I have not figured out how to use FindWindow to go to my proper window. I think the problem is that I don't know the appropriate name or title of the Internet Explorer window. Can someone help? I am use Windows 7 and IE 9 but I'd also like to make this work on other versions of IE. I'd appreciate any help.

I have a LotusScript button.

------------Here's the code in the Declarations:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(Byval lpClassName As String, Byval lpWindowName As Long) As Long
Dim hwnd As Long
Const vbinformation = 64 ' Remove if running in native Visual Basic
------------And here's the code in the Click event

Sub Click(Source As Button)

REM Call the FindWindow API; this API returns a window handle.
hwnd = FindWindow( "Internet Explorer", 0& )

REM See if you were able to obtain the Window handle.
If hwnd <> 0 Then ' If not zero a window handle was obtained.
Msgbox "Successfully obtained Window Handle (HWND) for " & "IE.", vbInformation, "Got Handle"
Else
Msgbox "Could not obtain Window Handle (HWND) for IE.", vbInformation, "Failed To Get Handle"
End If
End Sub


Feedback number WEBB8YSHFC created by ~Holly Umlugenli on 10/05/2012

Status: Open
Comments:

FindWindow usage or ways to jump to... (~Holly Umlugenl... 5.Oct.12)
. . Try using this... (~Tip Opjipymanl... 6.Oct.12)
. . . . got a handle to IE window - now how... (~Holly Umlugenl... 9.Oct.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS